package com.wp.design.structural.flyweight;

public class Test {
	private static final String[] deptArray = new String[]{"研发部","测试部","运维部","市场部"};
	public static void main(String[] args) {
		for (int i=0;i<10;i++){

			Manager manager = (Manager)EmployeeFactory.getManager(deptArray[(int)(Math.random()*deptArray.length)]);
			manager.report();
		}

	}
}
